import axios from 'axios';

/**
 * @description: 获取语言资源
 * @param {*}
 * @return {*}
 */
//
export function getLang(langCode: string) {
  if (!langCode) {
    langCode = 'zh-CN';
  }
  return axios({
    url: '/sys-system/lang/detail/name',
    method: 'GET',
    params: {
      langCode,
    },
  });
}

export default { getLang };
